<form action='' method='post' name='adminedit{$character.player_id}'>
<INPUT TYPE=HIDDEN NAME='action' value='add'>
  <table id='popup_table' cellspacing='0'>
    <tr class='menu_header'>
  	</tr>
  	<tr class='row_1'>
	<td colspan='3' class='staticboldcenter'>
	Please insert the following information:<br><span class='error'>{$errormessage}</span><br>
	</td>
	</tr>
  	<tr class='row_1'>
		<td class='staticboldright'>
		<br>
		</td>
		<td class='autonormaltop'>
		<br>
		</td>
		<td class='autonormaltopright' width='16px'>
		<br>
		</td>
	</tr>
  	<tr class='row_1'>
		<td class='staticboldright'>
			Name:

		</td>
		<td class='autonormalcenter'>
			<input type='text' id='name{$character.player_id}' class='largetext' name='name' value='{$character.name}'>
		</td>
		<td class='autonormal'>

		</td>
	</tr>
  	<tr class='row_1'>
		<td class='staticboldright'>
			Class:


			</td>
		<td class='autonormalcenter'>
			<select id='class{$character.player_id}' class='large'>
				<option label='Mage' value='1' {if $character.class eq 'Mage'}SELECTED{/if}>Mage</option>
				<option label='Paladin' value='2' {if $character.class eq 'Paladin'}SELECTED{/if}>Paladin</option>
				<option label='Hunter' value='3' {if $character.class eq 'Hunter'}SELECTED{/if}>Hunter</option>
				<option label='Warrior' value='4' {if $character.class eq 'Warrior'}SELECTED{/if}>Warrior</option>
				<option label='Rogue' value='5' {if $character.class eq 'Rogue'}SELECTED{/if}>Rogue</option>
				<option label='Priest' value='6' {if $character.class eq 'Priest'}SELECTED{/if} >Priest</option>
				<option label='Druid' value='7' {if $character.class eq 'Druid'}SELECTED{/if}>Druid</option>
				<option label='Warlock' value='8' {if $character.class eq 'Warlock'}SELECTED{/if}>Warlock</option>
				<option label='Shaman' value='9' {if $character.class eq 'Shaman'}SELECTED{/if}>Shaman</option>
				<option label='Death knight' value='10' {if $character.class eq 'Death knight'}SELECTED{/if}>Death knight</option>
			</select>
		</td>
		<td class='autonormal'>

		</td>
	</tr>
  	<tr class='row_1'>
		<td class='staticboldright'>
			Race:


		</td>
		<td class='autonormalcenter'>
			<select id='race{$character.player_id}' class='large'>
				<option label='Dwarf' value='Dwarf' {if $character.race eq 'Dwarf'}SELECTED{/if}>Dwarf</option>
				<option label='Human' value='Human' {if $character.race eq 'Human'}SELECTED{/if}>Human</option>
				<option label='Night Elf' value='Night Elf' {if $character.race eq 'Night Elf'}SELECTED{/if}>Night Elf</option>
				<option label='Gnome' value='Gnome' {if $character.race eq 'Gnome'}SELECTED{/if}>Gnome</option>
				<option label='Draenei' value='Draenei' {if $character.race eq 'Draenei'}SELECTED{/if}>Draenei</option>
			</select>
		</td>
		<td class='autonormal'>

		</td>
	</tr>

	{if isset($teams)}
  	<tr class='row_1'>
		<td class='staticboldright'>
			Team:


		</td>
		<td class='autonormalcenter'>
			<select id='team{$character.player_id}' class='large'>
			{foreach item=team from=$teams name=teams}
					<option value='{$team.team_id}' {if $team.team_id eq $character.team_id}SELECTED{/if} >{$team.team_order} - {$team.team_name}</option>
			{/foreach}
			</select>
		</td>
		<td class='autonormal'>

		</td>
	</tr>
	{else}
	<input TYPE='hidden' VALUE='{$character.team_id}' id='team{$character.player_id}'>
	{/if}

  	<tr class='row_1'>
		<td class='staticboldright'>
			Level:
		</td>
		<td class='autonormalcenter'>
			<input type='text' id='level{$character.player_id}' class='smalltext' name='level' value='{$character.level}'>
		</td>
		<td class='autonormal'>

		</td>
	</tr>


  	<tr class='row_1'>
		<td class='staticboldright'>
		<br>
		</td>
		<td class='autonormalbottom'>
		<br>
		</td>
		<td class='autonormalbottomright'>
		&nbsp;
		</td>
	</tr>
	<tr class='row_1'>
		<td class='staticboldcenter' colspan='3'>
		<br>
		<input name='newchar' type='button' value='Update' onclick='updatePlayer({$character.player_id} ,{$character.user_id} ,1 ,{if isset($rp[$character.user_id].40m)}{$rp[$character.user_id].40m}{else}0{/if} ,{if isset($rp[$character.user_id].20m)}{$rp[$character.user_id].20m}{else}0{/if}, {$smarty.foreach.standings.iteration}, {$script_location})'>
		</td>
	</tr>


 </table>
</form>